package com.yjz.jvm.juc.ExecutorService.result;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * 计算任务{@link com.yjz.jvm.juc.ExecutorService.task.CalculationTask}的结果
 *
 * @author :yuanJinZhong
 * @description: 计算结果
 * @date :2019/1/3-23:14
 */
@Slf4j
public class CalculationTaskResult {
  //private AtomicInteger totalScore=new AtomicInteger(0);
  private int totalScore;

  public int getTotalScore() {
//        log.warn("读取totalScore 为:{}",totalScore);
    return totalScore;
  }

  public void setTotalScore(int totalScore) {
//        log.warn("写入totalScore 为:{}",totalScore);
    this.totalScore = totalScore;
  }

//    public int getTotalScore() {
//        return totalScore.get();
//    }
//
//    public void setTotalScore(int totalScore) {
//        //log.warn("传进来的值是:{}",totalScore);
//        this.totalScore.addAndGet(totalScore);
//    }
}
